// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addAfterSalesService POST /api/afterSalesService/add */
export async function addAfterSalesServiceUsingPost(
  body: API.AfterSalesServiceAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/afterSalesService/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** cancelAfterSalesService POST /api/afterSalesService/cancel */
export async function cancelAfterSalesServiceUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/afterSalesService/cancel', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteAfterSalesService POST /api/afterSalesService/delete */
export async function deleteAfterSalesServiceUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/afterSalesService/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editAfterSalesService POST /api/afterSalesService/edit */
export async function editAfterSalesServiceUsingPost(
  body: API.AfterSalesServiceEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/afterSalesService/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getAfterSalesServiceVOById GET /api/afterSalesService/get/vo */
export async function getAfterSalesServiceVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getAfterSalesServiceVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseAfterSalesServiceVO_>('/api/afterSalesService/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listAfterSalesServiceByPage POST /api/afterSalesService/list/page */
export async function listAfterSalesServiceByPageUsingPost(
  body: API.AfterSalesServiceQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAfterSalesService_>('/api/afterSalesService/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listAfterSalesServiceVOByPage POST /api/afterSalesService/list/page/vo */
export async function listAfterSalesServiceVoByPageUsingPost(
  body: API.AfterSalesServiceQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAfterSalesServiceVO_>('/api/afterSalesService/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listMyAfterSalesServiceVOByPage POST /api/afterSalesService/my/list/page/vo */
export async function listMyAfterSalesServiceVoByPageUsingPost(
  body: API.AfterSalesServiceQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAfterSalesServiceVO_>(
    '/api/afterSalesService/my/list/page/vo',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  )
}

/** updateAfterSalesService POST /api/afterSalesService/update */
export async function updateAfterSalesServiceUsingPost(
  body: API.AfterSalesServiceUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/afterSalesService/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
